package com.kevin.strategy;

/**
 * 策略模式测试类
 *
 * @author kevin
 * @date 2025/8/5
 */
public class CashContextTest {

    public static void main(String[] args) {
        CashContext cashContext = new CashContext("正常收费");
        System.out.println(cashContext.getResult(5));

        CashContext cashContext1 = new CashContext("满300返100");
        System.out.println(cashContext1.getResult(500));

        CashContext cashContext2 = new CashContext("打8折");
        System.out.println(cashContext2.getResult(500));
    }
}
